<!DOCTYPE html>
<html lang="en">
<head>

	<meta charset="utf-8">
	<title>订单管理|订单详情</title>
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<meta name="description" content="">
	<meta name="author" content="">

	<!-- Le styles -->
	<link href="/cssadmin/bootstrap.css" rel="stylesheet">
	<link href="/cssadmin/font-awesome.css" rel="stylesheet">
	<link href="/cssadmin/admin.css" rel="stylesheet">
	<script src="/jsadmin/jquery.min.js"></script>
	<script src="/jsadmin/bootstrap.js"></script>
	<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	<script src="/js/html5.js"></script>
	<![endif]-->

</head>
<body>

<div class="container">

	<div class="row">
		<div class="span2">
			<div class="main-left-col">
				<h1><i class="icon-shopping-cart icon-large"></i> Admin</h1>
				<ul class="side-nav">

					<li>
						<a href="{{url('admins/index')}}"><i class="icon-home"></i> 管理中心</a>
					</li>
					<li class="dropdown">
						<a class="dropdown-toggle" data-toggle="collapse" data-target="#website-dropdown" href="#"><i class="icon-sitemap"></i> 商品管理 <b class="caret"></b></a>
						<ul id="website-dropdown" class="collapse">
							<li><a href="{{url('admins/glist')}}">商品列表</a></li>
							<li><a href="{{url('admins/clist')}}">商品分类</a></li>
							<li><a href="{{url('admins/gadd')}}">添加商品</a></li>
							<li><a href="{{url('admins/cadd')}}">添加分类</a></li>
						</ul>
					</li>
					<li class="dropdown">
						<a class="dropdown-toggle" data-toggle="collapse" data-target="#store-dropdown" href="#"><i class="icon-shopping-cart"></i> 订单管理 <b class="caret"></b></a>
						<ul id="store-dropdown">
							<li><a href="{{url('order/wf')}}">订单列表(未付款)</a></li>
							<li><a href="{{url('order/ys')}}">订单列表(已付款)</a></li>
							<li><a href="{{url('order/yf')}}">订单列表(已发货)</a></li>
							<li><a href="{{url('order/end')}}">订单列表(已完成)</a></li>
							<li class="active"><a href="">订单详情</a></li>
						</ul>
					</li>
					<li class="dropdown">
						<a class="dropdown-toggle" data-toggle="collapse" data-target="#reports-dropdown" href="#"><i class="icon-signal"></i> 会员管理 <b class="caret"></b></a>
						<ul id="reports-dropdown" class="collapse">
							<li><a href="report.html">会员列表</a></li>
						</ul>
					</li>
					<li class="dropdown">
						<a class="dropdown-toggle" data-toggle="collapse" data-target="#report-dropdown" href="#"><i class="icon-file"></i> 素材管理 <b class="caret"></b></a>
						<ul id="report-dropdown" class="collapse">
							<li><a href="{{url('img/list')}}">图片空间</a></li>
							<li><a href="{{url('img/up')}}">上传图片</a></li>
						</ul>
					</li>
					<li class="dropdown">
						<a class="dropdown-toggle" data-toggle="collapse" data-target="#settings-dropdown" href="#"><i class="icon-cogs"></i> 权限管理 <b class="caret"></b></a>
						<ul id="settings-dropdown" class="collapse">
							<li><a href="{{url('admins/reg')}}">添加管理员</a></li>
							<li><a href="{{url('admins/adminlist')}}">管理员列表</a></li>
							<li><a href="{{url('admins/roleadd')}}">添加角色</a></li>
							<li><a href="{{url('admins/rolelist')}}">角色列表</a></li>
						</ul>
					</li>
				</ul>
			</div> <!-- end main-left-col -->
		</div> <!-- end span2 -->
	
	<div class="span10">
	<div class="main-area dashboard">
			<div class="alert alert-info">
				<a class="close" data-dismiss="alert" href="#">x</a>
				<h4 class="alert-heading">Information</h4>
				The view order template would be used to display order information.
			</div>
			
			<div class="row">
			
				<div class="span4">
				
					<div class="slate">
					
						<div class="page-header">
							<h2>订单详情</h2>
						</div>
						
						<p><strong>订单号  :</strong> {{$order->order_num}}</p>
						<p><strong>下单日期:</strong> {{date('Y年m月d日 H:i:s',$order->xdtime)}}</p>
						<p><strong>支付方法:</strong> 网银在线</p>
						<p><strong>订单金额:</strong> ￥{{$order->price/100}}</p>
						<p><strong>快递公司:</strong> {{$order->kuaidigs}}</p>
						<p><strong>快递单号:</strong> <a href="">{{$order->kuaididh}}</a></p>
					</div>
				
				</div>
			
				<div class="span3">
				
					<div class="slate">
					
						<div class="page-header">
							<h2>客户信息:</h2>
						</div>
					
						<p><strong>账号:</strong> {{$user->name}}</p>
                        <p><strong>收货人:</strong> {{$order->name_}}</p>
                        <p><strong>地址:</strong> {{$order->address}}</p>
						<p><strong>手机号:</strong> {{$order->mobile}}</p>
					</div>
				
				</div>

				<div class="span3">

					<div class="slate">

						<div class="page-header">
							<h2>订单状态</h2>
						</div>
						<div class="page-body">
							@if($order->status == 1)
							<a href="#" type="button" class="btn btn-large btn-success">已付款</a>
							@elseif($order->status == 2)
								<a href="#" type="button" class="btn btn-large btn-success">已发货</a>
								@elseif($order->status == 3)
								<a href="#" type="button" class="btn btn-large btn-success">已完成</a>
								@elseif($order->status == 0)
								<a href="#" type="button" class="btn btn-large btn-info">未付款</a>
							@endif
						</div>
					</div>

				</div>
			
			</div>
			
			<div class="row">
				
				<div class="span10">
				
					<div class="slate">
					
						<div class="page-header">
							<h2>订单商品详情</h2>
						</div>
					
						<table class="orders-table table">
						<thead>
							<tr>
								<th>订单</th>
								<th class="value">金额</th>
								<th class="value">数目</th>
								<th class="actions">总价</th>
							</tr>
						</thead>
						<tbody>
						@foreach($goods as $g)
							<tr>
								<td><a href="">{{$g->goods_name}}</a></td>
								<td class="value">
									￥{{$g->curr_price/100}}
								</td>
								<td class="value">
									{{$g->num}}
								</td>
								<td class="actions">
									￥{{$g->infoprice/100}}
								</td>
							</tr>
							<tr>
						@endforeach
						</tbody>
						</table>
						<table>
							<tr>
								<td>总计</td>
								<td>￥{{$order->price/100}}</td>
							</tr>
						</table>
					</div>
				
				</div>

			
		<div class="row">
		
			<div class="span10 footer">
			
				<p>&copy; Website Name 2014</p>
			
			</div>
		
		</div>
		
	</div>
	
	</div> <!-- end span10 -->
		
	</div> <!-- end row -->
		
</div> <!-- end container -->

<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->

</body>
</html>